#!/bin/bash
read -p "Enter tagversion: " tagversion

tagspath=tags/${tagversion}/__ProjectName__/__ProjectName__

echo "make dir:${tagspath}"
mkdir -p ${tagspath}
echo "copy: __ProjectName__.podspec to ${tagspath}"
cp -f __ProjectName__.podspec ${tagspath}/__ProjectName__.podspec
echo "copy source code"
cp -rf __ProjectName__/__ProjectName__/ ${tagspath}/__ProjectName__/


#svn PrivatePods
echo "mk PrivatePods"
privateTagsPath=../../YY_PrivatePods/__ProjectName__/${tagversion}
mkdir -p ${privateTagsPath}
cp -f __ProjectName__.podspec ${privateTagsPath}/__ProjectName__.podspec
